using Microsoft.Xna.Framework;

namespace SolarWinds.Transitions
{
    public class FadeTransition : Transition
    {

        public FadeTransition(Game game)
            : base(game)
        {
        }

        protected override void Update(float progress)
        {
            if (Mode == BlendModes.In)
            {
                Screen.Alpha = progress;
            }
            else
            {
                Screen.Alpha = 1.0f - progress;
            }
        }
    }
}